package org.springblade.common.redisLock;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.StringRedisTemplate;

@Configuration
public class DisLockConfiguration {
	public DisLockConfiguration() {
	}

	@Bean
	public DisLockManager disLockManager(StringRedisTemplate stringRedisTemplate) {
		return new RedisDisLockManager(stringRedisTemplate);
	}
}
